﻿<Window
  x:Class="SanctusSoftware.Music.ChordSheetEditor.Wpf.TransposeOptionsWindow"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="Transpose Options"
  WindowStyle="SingleBorderWindow"
  Height="125"
  Width="446"
  WindowStartupLocation="CenterScreen">
  <Grid
    Background="#F0F0F0">
    <Grid.RowDefinitions>
      <RowDefinition
        Height="*" />
      <RowDefinition
        Height="Auto" />
    </Grid.RowDefinitions>
    <Border
      Grid.Row="0"
      Margin="7"
      Padding="7"
      Background="White"
      BorderBrush="DarkGray"
      BorderThickness="1">
      <Grid>
        <Grid.ColumnDefinitions>
          <ColumnDefinition
            Width="Auto" />
          <ColumnDefinition
            Width="*" />
          <ColumnDefinition
            Width="Auto" />
          <ColumnDefinition
            Width="Auto" />
        </Grid.ColumnDefinitions>

        <Label
          Grid.Column="0"
          Content="Minimum Chord Line Match Percent"></Label>
        <Slider
          Margin="7 0 0 0"
          HorizontalAlignment="Stretch"
          Grid.Column="1"
          Minimum="1"
          Maximum="99"
          Value="{Binding MinimumChordLineMatchPercentage, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
          SmallChange="1"
          LargeChange="3"
          TickPlacement="None"></Slider>
        <Label
          Margin="7 0 0 0"
          Grid.Column="2"
          Content="{Binding MinimumChordLineMatchPercentage, Mode=OneWay}" />
      </Grid>

    </Border>
    <StackPanel
      Grid.Row="1"
      Orientation="Horizontal"
      HorizontalAlignment="Right"
      Margin="7 0 14 7">
      <StackPanel.Resources>
        <Style
          TargetType="{x:Type Button}">
          <Setter
            Property="Width"
            Value="75" />
          <Setter
            Property="Height"
            Value="24" />
        </Style>
      </StackPanel.Resources>
      <Button
        x:Name="_OKButton"
        IsDefault="True"
        Click="_OKButton_Click">OK</Button>
      <Button
        Margin="7 0 0 0"
        x:Name="_CancelButton"
        IsCancel="True"
        Click="_CancelButton_Click">Cancel</Button>
      <!-- INSERT BUTTON CONTROLS HERE, ONLY NEED TO WORK ABOUT DISTANCE FROM EACH-OTHER -->
    </StackPanel>

  </Grid>
</Window>
